import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 实销上报-单/批量上报
export const addVinOrderReport = params => axios.post(`${SERVER.CYXDMS_RETAIL}/ordermanage/vinOrdersReport/addVinOrderReport`, params);
// 实销上报订单明细查询
export const getReportOrderDetails = (id, params) => axios.get(`${SERVER.CYXDMS_RETAIL}/ordermanage/vinOrdersReport/getReportOrderDetails/${id}`, { params });
// ordermanage/vinOrdersReport/qryVinOrderReport 实销上报订单分页查询
export const qryVinOrderReport = params => axios.get(`${SERVER.CYXDMS_RETAIL}/ordermanage/vinOrdersReport/qryVinOrderReport`, { params });
// 实销上报——更新销售订单关联的发票信息
export const updateSalesOrderInvoice = params => axios.put(`${SERVER.CYXDMS_RETAIL}/ordermanage/vinOrdersReport/updateSalesOrderInvoice`, params);
